////////////////////////////////////////////////
// -- DepthHUD Lite                           //
// by Hurricaaane (Ha3)                       //
//                                            //
// http://www.youtube.com/user/Hurricaaane    //
//--------------------------------------------//
// Base label                                 //
////////////////////////////////////////////////

local PANEL = {}

AccessorFunc( PANEL, "m_fRate", "Rate" )
//AccessorFunc( PANEL, "m_fText", "Text" )

function PANEL:Init()
	self.e_vIndicator = vgui.Create( "HIndicator", self )
	
end
/*
function PANEL:SetText( sText )
	self.e_vIndicator:SetText( tostring( sText ) )
	
end
*/
function PANEL:SetRate( fRate )
	self.e_vIndicator:SetRate( fRate )
	
end

// debug test input
function PANEL:OnMousePressed( mousecode )
	surface.PlaySound("dhlite/dhlite_cant.wav")
	
end

Derma_Hook( PANEL, "PerformLayout", "Layout", "HIndicatorLabel" )
derma.DefineControl( "HIndicatorLabel", "", PANEL, "HPanel" )